import request from '@/utils/request'

// 查询钓鱼点管理列表
export function listFishpoint(query) {
  return request({
    url: '/info/fishpoint/list',
    method: 'get',
    params: query
  })
}

// 查询钓鱼点管理详细
export function getFishpoint(id) {
  return request({
    url: '/info/fishpoint/' + id,
    method: 'get'
  })
}

// 新增钓鱼点管理
export function addFishpoint(data) {
  return request({
    url: '/info/fishpoint',
    method: 'post',
    data: data
  })
}

// 修改钓鱼点管理
export function updateFishpoint(data) {
  return request({
    url: '/info/fishpoint',
    method: 'put',
    data: data
  })
}

// 删除钓鱼点管理
export function delFishpoint(id) {
  return request({
    url: '/info/fishpoint/' + id,
    method: 'delete'
  })
}
